package edu.scmu.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;

@RestController
public class RequestController {

    @RequestMapping("/simple")
    public String simpleParam(HttpServletRequest req){
        String name = req.getParameter("name");
        String age = req.getParameter("age");
        System.out.println("name:" + name + ",age:" + age);
        return "OK";
    }
}
